package cn.com.guage.dtm;

public class Main {
    public static void main(String[] args) {

        String str = "hello";

        StringBuffer sb = new StringBuffer(str);
        System.out.println(sb.reverse());
        String[] array = str.split("");
        for (int i = str.length()-1; i >=0; i--) {
            System.out.print(array[i]);
        }
    }
}